package com.mrjy.common.qtz;

import java.util.Map;

import javax.annotation.Resource;

import org.apache.log4j.Logger;

import com.mrjy.maintain.bo.IPartnerInfoBo;
import com.mrjy.maintain.bo.ISchoolInfoBo;
import com.mrjy.maintain.bo.IServiceStationInfoBo;
import com.mrjy.share.bo.IDistributorInfoBo;

public class DistributorStatusCheckJob{
	
	@Resource
	private IDistributorInfoBo distributorInfoBo;
	
	@Resource
	private IPartnerInfoBo partnerInfoBo;
	
	@Resource
	private IServiceStationInfoBo  serviceStationInfoBo;
	
	@Resource
	private ISchoolInfoBo  schoolInfoBo;
	
    private static Logger logger = Logger.getLogger(DistributorStatusCheckJob.class);
    /**
     * @Description: 执行任务，检查分销商的有效期并更新状态
     * @param    
     */
	public void doJob() {
    	
		@SuppressWarnings("unchecked")
		Map<String , Object> map = (Map<String, Object>) distributorInfoBo.txCheckDistributorStatusExpired();
    	logger.debug("定时器定期检查分销商的有效期 ：=================================>" +map.get("err_msg"));
    	
    	@SuppressWarnings("unchecked")
		Map<String , Object> partnerInfoMap = (Map<String, Object>) partnerInfoBo.txCheckPartnerInfoStatusExpired();
    	logger.debug("定时器定期检查合作方的有效期 ：=================================>" +partnerInfoMap.get("err_msg"));
    	
    	Map<String , Object> stationMap = (Map<String, Object>) serviceStationInfoBo.txCheckStationInfoStatusExpired();
    	logger.debug("定时器定期检查服务站的有效期 ：=================================>" +stationMap.get("err_msg"));
    	
    	Map<String , Object> schoolMap = (Map<String, Object>) schoolInfoBo.txCheckSchoolInfoStatusExpired();
    	logger.debug("定时器定期检查学校的有效期 ：=================================>" +schoolMap.get("err_msg"));
    	
    }

}